package com.share.domain.activity.service.quota;

import com.share.domain.activity.model.entity.PartakeRaffleActivityEntity;
import com.share.domain.activity.model.entity.UserRaffleOrderEntity;

/**
 *  抽奖活动参与服务
 */
public interface IRaffleActivityPartakeService {

    /**
     * 创建抽奖单 - 扣减账户库存，产生抽奖单，如存在未被使用的抽奖单则直接返回已存在的抽奖单
     * @param partakeRaffleActivityEntity 参与抽奖活动的实体对象
     * @return 抽奖单
     */
    UserRaffleOrderEntity createOrder(PartakeRaffleActivityEntity partakeRaffleActivityEntity);

    UserRaffleOrderEntity createOrder(String userId, Long activityId);
}
